<?php
	class users extends database{
		protected $_table = "tbl_users";
		public function checklogin($user,$pass){
			$sql = "select * from $this->_table where user_name = '$user' and user_pass = '$pass'";
			$this->query($sql);
			if($this->num_rows() > 0){
				return $this->fetch();
			}else{
				return "false";
			}
		}
	}
?>